package com.psl.action.work.waixie;

import com.psl.services.work.waixie.wxbj;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;

public class wxdel
{
  public int id;
  public int h_receipt;
  
  public void setId(int id)
  {
    this.id = id;
  }
  
  public void setH_receipt(int h_receipt)
  {
    this.h_receipt = h_receipt;
  }
  
  public int getId()
  {
    return this.id;
  }
  
  public int getH_receipt()
  {
    return this.h_receipt;
  }
  
  public String execute()
  {
    HttpServletRequest request = ServletActionContext.getRequest();
    int id = Integer.parseInt(request.getParameter("id"));
    wxbj bj = new wxbj();
    bj.del(id);
    bj.wxbj();
    return "success";
  }
}
